package com.xl.qa.entity.param;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

/**
 * @author 钟勇
 * Create in 2024/1/15 15:35
 */
@Data
public class AddQuestionParam {
    @NotBlank(message = "标题不能为空")
    private String questionTitle;

    @Schema(title = "简介")
    private String questionIntro;

    @Schema(title = "广告图片地址")
    private String adImgUrl;

    @NotNull(message = "价格不能为空")
    private Integer price;

    @Schema(title = "排序，小的排前面")
    private Integer sortIndex = 10;

    @Schema(title = "是否禁用")
    private Integer disableFlag = 0;

    @Schema(title = "表单内容")
    private String formJsonStr;
}
